package com.BigDate.server.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author stx
 * @since 2021-12-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_experiment")
@ApiModel(value="Experiment对象", description="")
public class Experiment implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "实验表")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "项目描述")
    private String projectAbs;

    @ApiModelProperty(value = "项目内容")
    private String content;

    @ApiModelProperty(value = "ipynb文件的地址")
    private String pynbPath;

    @ApiModelProperty(value = "项目难度分级")
    private String projectType;

    @ApiModelProperty(value = "项目研究领域")
    private String projectArea;

    @ApiModelProperty(value = "项目研究方法")
    private String projectMethod;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date projectTime;

    @ApiModelProperty(value = "项目数据集")
    private String projectDataset;

    @ApiModelProperty(value = "收藏数量")
    private Integer collectionQuantity;

    @ApiModelProperty(value = "用户id(fk)")
    private Integer userid;

    @ApiModelProperty(value = "用户名称(fk)")
    @TableField(exist = false)
    private String  nickname;

    @ApiModelProperty(value = "发布实验的用户")
    @TableField(exist = false)
    private User user;
}
